package com.peaksport.framework.util;

import com.peaksport.framework.exception.PKDevException;

public class PKDevUtils {

	/**
	 * 判断空值(接口调用或传参异常,开发运行时用)
	 * @param obj
	 * @param formatStr
	 * @param args
	 */
	public static void verifyDevNull(Object obj, String formatStr,Object... args) {
		String errmsg = String.format(formatStr, args);
		if (obj == null) throw new PKDevException(errmsg);
	} 
}
